const BASE = 'http://bl.7yue.pro/v1/';
export default {
  appkey: 'GgRhTjUNUYn1fHke',   // 小程序视频中的appKey
  classic: {     // 期刊模块
    latest: BASE + 'classic/latest',    // 获取最新的期刊杂志
    like: BASE + 'like',
    cancel: BASE + 'like/cancel',
    classicBase: BASE+'classic/',
    previous: '/previous',    // classicBase + index + previous 可以获取上一期刊的信息
    next: '/next',
    likeStatus: function(artID, category) {return BASE+'classic/'+category+'/'+artID+'/favor'},  // 获取期刊的心形图标的状态
    favor: BASE+'classic/favor',
  },
  book: {   // 书籍
    hotList:  BASE+'book/hot_list',   // 获取热门的数据
    myBookCount: BASE+'book/favor/count',   // 获取我的书籍的数量
    detail: function(bid) {return BASE+`book/${bid}/detail`},  // 获取书籍详细信息
    likeStatus: function(bid) {return BASE+`book/${bid}/favor`},   // 获取某个书的喜欢状态
    comment: function(bid) {return BASE+`book/${bid}/short_comment`},   // 获取书籍的类型标签
    shortComment: BASE+'book/add/short_comment',    // 提交短评信息
    hotKeyword: BASE+'book/hot_keyword',    // 获得热门关键搜索词
    bookSearch: BASE+'book/search?summary=1',    // 搜索书籍
  }
};
